<template>
  <input type="text" :value="value" @input="handleChange" />
</template>

<script setup lang="ts">
import { defineProps } from "vue";
import { FieldPropsDefine } from "../types";
const props = defineProps(FieldPropsDefine);
const handleChange = (e: any) => {
  console.log(e);
  props.onChange(e.target.value);
};
</script>
